<template>
    <div class="set-up">
        <div class="logo">
            <img src="../../assets/imgs/my/logo.png" alt="">
        </div>
            <div class="sign" @click="signOutNow()">
                <p>退出</p>
            </div>
        </div>
</template>

<script>
import http from "@/assets/js/axios";
import httpr from "@/assets/js/axiosr";
import { domain } from '@/assets/js/config'
import $ from 'jquery'
import { Toast } from 'mint-ui';
export default {
    data() {
        return {
            userToken: '',
        }
    },
    components: {

    },
    mounted() {
        let userToken = localStorage.getItem("token") || ''
        this.userToken = userToken
        //  let poctId = this.$route.query.productId;
        // if (!this.userToken) {
        //     this.$router.push('/index')
        // }
    },
    methods: {
        direct: function (val) {
            this.$router.push({ path: '/' + val });
        },
        signOutNow: async function () {
            localStorage.setItem('token', '')
            this.$router.push('/login')
        },
    }
}
</script>

<style lang="stylus" scoped>
.set-up {
    div.logo {
        margin-top: 40px;
        width: 100%;
        text-align: center;

        img {
            width: 110px;
            height: 120px;
        }
    }

    div.sign {
        margin-top: 50px;
        text-align: center;
        padding: 0 30px;

        p {
            width: 100%;
            height: 50px;
            line-height: 50px;
            text-align: center;
            background: rgba(194, 223, 90, 1);
            border-radius: 10px;
            font-size: 18px;
            font-family: PingFangSC-Regular;
            font-weight: 400;
            color: rgba(255, 255, 255, 1);
        }
    }
}
</style>
